const meta = {
    "prompts": {
        "name": {
            "type": "string",
            "required": true,
            "message": "Project name",
            "default": "miniprogram"
        },
        "description": {
            "type": "string",
            "required": true,
            "message": "Project description",
            "default": "A Vue.js project"
        },
        "author": {
            "type": "string",
            "message": "Author",
            "default": "LongXiaoBai <wlan945636373@gmail.com>"
        },
        "build": {
            "when": "isNotTest",
            "type": "list",
            "message": "Vue build",
            "choices": [
                {
                    "name": "Runtime + Compiler: recommended for most users",
                    "value": "standalone",
                    "short": "standalone"
                },
                {
                    "name": "Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render functions are required elsewhere",
                    "value": "runtime",
                    "short": "runtime"
                }
            ]
        },
        "router": {
            "when": "isNotTest",
            "type": "confirm",
            "message": "Install vue-router?"
        },
        "lint": {
            "when": "isNotTest",
            "type": "confirm",
            "message": "Use ESLint to lint your code?"
        },
        "lintConfig": {
            "when": function () {
                console.log('lint',this);
                return this.lint;
            },
            "type": "list",
            "message": "Pick an ESLint preset",
            "choices": [
                {
                    "name": "Standard (https://github.com/standard/standard)",
                    "value": "standard",
                    "short": "Standard"
                },
                {
                    "name": "Airbnb (https://github.com/airbnb/javascript)",
                    "value": "airbnb",
                    "short": "Airbnb"
                },
                {
                    "name": "none (configure it yourself)",
                    "value": "none",
                    "short": "none"
                }
            ]
        },
        "license": {
            "type": "string",
            "message": "License",
            "default": "MIT"
        },
        "e2e": {
            "when": "isNotTest",
            "type": "confirm",
            "message": "Setup e2e tests with Nightwatch?"
        },
        "runner": {
            "when": function () {
                console.log('e2e',this);
                return this.e2e;
            },
            "type": "list",
            "message": "Pick a test runner",
            "choices": [
                {
                    "name": "Jest",
                    "value": "jest",
                    "short": "jest"
                },
                {
                    "name": "Karma and Mocha",
                    "value": "karma",
                    "short": "karma"
                },
                {
                    "name": "none (configure it yourself)",
                    "value": "noTest",
                    "short": "noTest"
                }
            ]
        },
        "unit": {
            "when": "isNotTest",
            "type": "confirm",
            "message": "Set up unit tests"
        },
        "color": {
            "type": "checkbox",
            "message": "选择一至多种颜色:",
            "name": "color",
            "choices": [
                {
                    "name": "red"
                },
                {
                    "name": "blue"
                },
                {
                    "name": "green"
                },
                {
                    "name": "pink",
                    "checked": true
                },
                {
                    "name": "orange"
                }
            ]
        },
        "autoInstall": {
            "when": "isNotTest",
            "type": "list",
            "message": "Should we run `npm install` for you after the project has been created? (recommended)",
            "choices": [
                {
                    "name": "Yes, use NPM",
                    "value": "npm",
                    "short": "npm"
                },
                {
                    "name": "Yes, use Yarn",
                    "value": "yarn",
                    "short": "yarn"
                },
                {
                    "name": "No, I will handle that myself",
                    "value": false,
                    "short": "no"
                }
            ]
        }
    },
    "completeMessage": "{{#inPlace}}To get started:\n\n  npm install\n  npm run dev{{else}}To get started:\n\n  cd {{destDirName}}\n  npm install\n  npm run dev{{/inPlace}}"
};

module.exports = meta;